'Declaration Public Overloads Shared Function QueryInterfaceOrNull(Of T As ComObject)( _ ByVal comPointer As System.IntPtr _ ) As T
public static T QueryInterfaceOrNull<T>( System.IntPtr comPointer ) where T: ComObject
Parameters
- comPointer
- A pointer to a COM object.
Type Parameters
- T
- The type of the COM interface to query
Return Value
An instance of the queried interface